<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common_include_for_server.jsp"%>
<s:a href="manage/hotInfo!saveOrUpdate">添加动态</s:a>
<form id="query_form" action="<%=request.getContextPath()%>/manage/hotInfo!list.action" method="post">
	分类：
			<select name="hotInfo.hotInfoType.hotInfoTypeId">
				<option value="0">---请选择---</option>
				<s:iterator value="hotInfoTypeList">
					<option value="${hotInfoTypeId }" <s:if test="%{hotInfo.hotInfoType.hotInfoTypeId == hotInfoTypeId}">selected</s:if>  ><s:property value="name"/></option>
				</s:iterator>
			</select>
	关键字：<s:textfield name="hotInfo.name" value="%{hotInfo.name}" size="20"></s:textfield>
	<s:hidden id="show_page" name="pageUtil.showPage" value="%{pageUtil.showPage}"></s:hidden>
	<input type="button" value="查询" onclick="go(1, true)" />
</form>
<table border="1">
	<tr>
		<th>
			分类
		</th>
		<th>
			标题
		</th>
		<th>
			录入时间
		</th>
		<th>
			录入人
		</th>
		<th>
			操作
		</th>
	</tr>
	<s:iterator value="pageUtil.pageData">
		<tr>
			<td>
				<s:property value="hotInfoType.name" />
			</td>
			<td style="width: 600px; white-space: normal">
				<s:property value="title" />
			</td>
			<td>
				<s:date name="createTime" format="yyyy-MM-dd HH:mm" />
			</td>
			<td>
				<s:property value="user.realName" />
			</td>
			<td>
				<s:a href="">查看</s:a>
				<s:a href="manage/hotInfo!saveOrUpdate.action?hotInfo.hotInfoId=%{hotInfoId}&pageUtil.showPage=%{pageUtil.showPage}">修改</s:a>
				<s:a href="manage/hotInfo!delete.action?hotInfo.hotInfoId=%{hotInfoId}&pageUtil.showPage=%{pageUtil.showPage}">删除</s:a>
			</td>
		</tr>
	</s:iterator>
</table>
<script type="text/javascript">
<!--
		function go(showPage, newSearch){
			if(newSearch){
				$('#show_page').val(1);
			}else{
				$('#query_form').get(0).reset();
				$('#show_page').val(showPage);
			}
			$('#query_form').submit();
		}
	//-->
	</script>
<%@ include file="/jsp/common/common_include_for_pages.jsp"%>
